'use strict'
const merge = require('webpack-merge')
const prodEnv = require('./prod.env')

// 判断发布环境
if(process.argv[2] == '--inline' || process.argv[2] == 'dev') {
  // let BASE_HOST = 'http://192.168.1.122:36400';
  // let BASE_HOST = 'http://192.168.31.240:36400';
  let BASE_HOST = 'https://blog.beansprout.top';
  let API_CONTEXT_PATH = '/api';
  let WEB_CONTEXT_PATH = '/manage/';
  prodEnv.BASE_HOST = '"' + BASE_HOST + '"';
  prodEnv.API_CONTEXT_PATH = '"' + API_CONTEXT_PATH + '"';
  prodEnv.BASE_API = '"' + BASE_HOST + API_CONTEXT_PATH + '"';
  prodEnv.WEB_CONTEXT_PATH = '"' + WEB_CONTEXT_PATH + '"';
}

module.exports = merge(prodEnv, {
  NODE_ENV: '"development"'
})
